import BoundaryEventTimer from './components/BoundaryEventTimer.vue';
import UserTaskCustomConfig from './components/UserTaskCustomConfig.vue';

import { $t } from '#/locales';

export const CustomConfigMap = {
  UserTask: {
    name: '用户任务',
    component: UserTaskCustomConfig,
  },
  BoundaryEventTimerEventDefinition: {
    name: '定时边界事件(非中断)',
    component: BoundaryEventTimer,
  },
};

export function useCustomConfigMap() {
  return {
    UserTask: {
      name: $t('components.bpmnProcessDesigner.panel.customConfig.userTask'),
      component: UserTaskCustomConfig,
    },
    BoundaryEventTimerEventDefinition: {
      name: $t('components.bpmnProcessDesigner.panel.customConfig.boundaryEventTimeEvent'),
      component: BoundaryEventTimer,
    },
  }
}
